<!DOCTYPE html>
<html lang="en">
<head>
    <title>无线路由管理平台</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="css/bootstrap.min.css" />
    <link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
    <link rel="stylesheet" href="css/unicorn.main.css" />
    <link rel="stylesheet" href="css/unicorn.grey.css" class="skin-color" />

    <link rel="stylesheet" href="/css/theme1/jquery-ui-1.10.4.custom.css" />
    <link rel="stylesheet" href="/css/ui.jqgrid.css" />
    <link rel="stylesheet" href="/css/jquery.qtip.min.css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>

<%include inc.html%>

<div id="content">

    <div id="breadcrumb">
        <a href="index.html" title="返回控制台" class="tip-bottom"><i class="icon-home"></i> 无线路由管理平台</a>
        <a href="#" class="current">WiFi热点管理</a>


    </div>
    <div class="container-fluid">


        <div class="row-fluid">
            <div class="span12">
                <div style="margin: 0 auto;"  class="alert alert-block alert-<%if(typeof(retdata.success)!="undefined" && retdata.success==false){%>error<%}else{%>info<%}%>" id="info">
                    <i class="  icon-cog"></i>
                    <%=retdata.info %>
                    <a href="#" data-dismiss="alert" class="close">×</a>
                </div>
            </div>
        </div>


        <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title">
                        <span class="icon">
                            <i class="icon-align-justify"></i>
                        </span>
                    <h5>WiFi热点管理</h5>

                    <span class="label label-important"></span>
                </div>
                <div class="widget-content nopadding">
                    <form class="form-horizontal" method="post" name="wifiinfo" id="wifiinfo" novalidate="novalidate" />

                    <input id="oper" style="display: none" name="oper">
                    <input id="id" style="display: none" name="id">

                    <div class="control-group">
                        <label class="control-label">热点名称</label>
                        <div class="controls">
                            <input type="text" name="wifissid" id="wifissid"
                                   value="<%if(typeof(virwifiinfo.wifissid)!=="undefined" && !!virwifiinfo.wifissid ){%><%=virwifiinfo.wifissid%><%}%>"/>
                            名称和路由器配置相同
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">放通域名</label>
                        <div class="controls">
                            <input type="text" name="wifipassdomain" id="wifipassdomain"
                                   value="<%if(typeof(virwifiinfo.wifipassdomain)!=="undefined" && !!virwifiinfo.wifipassdomain ){%><%=virwifiinfo.wifipassdomain%><%}%>"/>
                            放通的域名或IP地址，多个用||分割
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">最大带宽</label>
                        <div class="controls">
                            <input type="text" name="wifiauthbrand" id="wifiauthbrand"
                                   value="<%if(typeof(virwifiinfo.wifiauthbrand)!=="undefined" && !!virwifiinfo.wifiauthbrand ){%><%=virwifiinfo.wifiauthbrand%><%}%>"/>
                            顾客使用网络的最大带宽限制（单位：K）。-1表示不限制
                        </div>
                    </div>


                    <div class="control-group">
                        <label class="control-label">最大在线时长</label>
                        <div class="controls">
                            <input type="text" name="wifiauthhour" id="wifiauthhour"
                                   value="<%if(typeof(virwifiinfo.wifiauthhour)!=="undefined" && !!virwifiinfo.wifiauthhour ){%><%=virwifiinfo.wifiauthhour%><%}%>"/>
                            顾客上网时长限制（单位：分钟）。-1表示不限制

                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">认证成功后重定向网址</label>
                        <div class="controls">
                            <input type="text" name="wifiredirecturl" id="wifiredirecturl"
                                   value="<%if(typeof(virwifiinfo.wifiredirecturl)!=="undefined" && !!virwifiinfo.wifiredirecturl ){%><%=virwifiinfo.wifiredirecturl%><%}else{%>useronlineinfo.html<%}%>"/>
                            顾客认证成功后自动跳转地址（默认值：useronlineinfo.html）
                            您可以根据需要修改为您的门户网站。<STRONG class="red"> 其他网址必须以http://开头</STRONG>。
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">认证方式</label>
                        <div class="controls">
                            <% retdata.authlistemun.forEach(function(post, index){%>
                            <%if(typeof(virwifiinfo.wifiauthtype)!=="undefined" && !!virwifiinfo.wifiauthtype ){%>
                                <%if(((retdata.roleinfo.authnumber & post.key)!==0 &&post.key!== -1)  ||  retdata.roleinfo.authnumber == -1){%>
                                <label><input value="<%=post.key%>" type="checkbox" name="wifiauthtype" id="wifiauthtype"
                                    <%if(post.key == -1 && virwifiinfo.wifiauthtype == -1){%>
                                    <%='checked'%>

                                    <%}else if((virwifiinfo.wifiauthtype & post.key)!==0
                                    && post.key !== -1
                                    && virwifiinfo.wifiauthtype !== -1){%>
                                    <%='checked'%>
                                    <%}%>
                                    >
                                    <span class="checker blue" class="lbl"><%=post.value%></span></label>
                                <%}%>
                            <%}else{%>
                                <%if(((retdata.roleinfo.authnumber & post.key)!==0 &&post.key!== -1)  ||  retdata.roleinfo.authnumber == -1){%>
                                    <label><input value="<%=post.key%>" type="checkbox" name="wifiauthtype" id="wifiauthtype"
                                        <%if(post.key == -1 && retdata.roleinfo.authnumber == -1){%>
                                        <%='checked'%>

                                        <%}else if((retdata.roleinfo.authnumber & post.key)!==0
                                        && post.key !== -1
                                        && retdata.roleinfo.authnumber !== -1){%>
                                        <%='checked'%>
                                        <%}%>
                                        >
                                        <span class="checker blue" class="lbl"><%=post.value%></span></label>
                                <%}%>
                            <%}%>
                            <%})%>

                            <span class="red">说明：如果同时选择“无限制”和其他权限则默认设置为“无限制”。</span>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">微信关注响应消息：</label>
                        <div class="controls">
                            <textarea type="text" rows="6" name="weixincode" id="weixincode"><%if(typeof(virwifiinfo.weixincode)!=="undefined" && !!virwifiinfo.weixincode ){%><%=virwifiinfo.weixincode%><%}%></textarea>如果开启微信关注公众号认证，请将此代码拷贝到您的微信公众号的响应消息中。
                        </div>
                    </div>





                    <div class="form-actions">
                        <input type="submit" value="提交" class="btn btn-danger" />
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    </div>
    <div class="row-fluid">
        <div id="footer" class="span12">
            2014 &copy; 无线广告路由云管理平台
        </div>
    </div>
</div>

<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>

<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>

<script src="js/jquery.validate.js"></script>
<script src="js/unicorn.js"></script>
<script type='text/javascript' src='js/bootbox.min.js' charset='utf-8'></script>
<script src="js/jquery.qtip.min.js"></script>
<script src="js/unicorn.wifiinfo.js"></script>
</body>
</html>
